package com.stone.name.space.bean;



/**
 * <p>Created with IntelliJ IDEA. </p>
 * <p>User: Stony </p>
 * <p>Date: 2016/6/24 </p>
 * <p>Time: 11:31 </p>
 * <p>Version: 1.0 </p>
 */
public class People extends BaseConfig {

    private String name;
    private Integer age;

    public People() {
    }
    public People(PeopleDto peopleDto){
        this.id = peopleDto.getId();
        this.name = peopleDto.getName();
        this.age = peopleDto.getAge();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "People{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
